package main

import (
	"cloud_android_backend/api"
	"cloud_android_backend/pkg/config"
	"cloud_android_backend/pkg/scheduler"

	_ "cloud_android_backend/docs"

	"modules.tenxcloud.com/common/composite"
	"modules.tenxcloud.com/common/utility"
)

//	@title						多云渲染 API 文档
//	@version					v1.0
//	@description				多云离线渲染 API 文档,Type "Bearer" followed by a space and JWT token.
//	@license.name				Apache 2.0 (暂定)
//	@contact.name				go-swagger帮助文档
//	@contact.url				https://github.com/swaggo/swag/blob/master/README_zh-CN.md
//	@host						localhost:8082
//	@BasePath					/api/v1
//	@securityDefinitions.apikey	ApiKeyAuth
//	@in							header
//	@name						Authorization
//	@schemes					http
func main() {

	scheduler.Get().Start()
	utility.Must(api.Application.Run(config.NewService(composite.Configuration).ListenPort()))
}
